package com.jingdianjichi.project.application.mq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * ClassName:TestConsumer
 * Package:com.jingdianjichi.project.application.mq
 * Description:
 *
 * @Author fst
 * @Create 2025/2/16 13:28
 * @Version 1.0
 */
@Component
@RocketMQMessageListener(topic = "first-topic",consumerGroup = "test-group")
@Slf4j
public class TestConsumer implements RocketMQListener<String>
{

    @Override
    public void onMessage(String s)
    {
        log.info("consumer message:{}",s);
    }
}
